home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Main.bin / MatteBorder.java < prev    next >
Text File  |  1998-04-21  |  999b  |  53 lines

  1. package com.symantec.itools.swing.borders;
  2.  
  3. import java.awt.Color;
  4. import java.awt.Insets;
  5. import com.sun.java.swing.Icon;
  6.  
  7. public class MatteBorder
  8.     extends com.sun.java.swing.border.MatteBorder
  9.     implements java.io.Serializable
  10. {
  11.     public MatteBorder()
  12.     {
  13.         super(0,0,0,0,Color.black);
  14.     }
  15.     
  16.     //
  17.     // Properties
  18.     //
  19.     
  20.     public Insets getInsets()
  21.     {
  22.         return new Insets(top,left,bottom,right);
  23.     }
  24.     
  25.     public void setInsets(Insets newInsets)
  26.     {
  27.         top = newInsets.top;
  28.         left = newInsets.left;
  29.         bottom = newInsets.bottom;
  30.         right = newInsets.right;
  31.     }
  32.     
  33.     public Color getColor()
  34.     {
  35.         return color;
  36.     }
  37.     
  38.     public void setColor(Color newColor)
  39.     {
  40.         color = newColor;
  41.     }
  42.     
  43.     public Icon getTileIcon()
  44.     {
  45.         return tileIcon;
  46.     }
  47.     
  48.     public void setTileIcon(Icon newTileIcon)
  49.     {
  50.         tileIcon = newTileIcon;
  51.     }
  52. }
  53.